<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>美甲后台管理工作平台</title>
	<link rel="stylesheet" type="text/css" href="css/style.css"/>
	
	<script type="text/javascript">
	//alert('<%=basePath%>');
	function reloadcheckcode(img){
		img.src = "checkCode.action?r="+Math.random();
	}
	if(window.parent != window){
		window.parent.location = window.location;
	}
	
	function form_submit(){
		document.getElementById("login").submit();
	}
	function form_reset(){
		document.getElementById("login").reset();
	}

	</script>
</head>
<body>
<div id="top"></div>
<form id="login" action="staff/login.action" method="post">
  <div id="center">
    <div id="center_left"></div>
    
    <div id="center_middle">
      <c:if test="${error != null}">
      		<div><font color="red">${error}</font></div>
      </c:if>
      <div class="user">
        <label>用户名：
        	<input type="text" name="username" id="name"/>
        </label>
      </div>
      <div class="user">
        <label>密　码：
        	<input type="password" name="password" id="pwd"/>
        </label>
      </div>
      <!-- 
      <div class="chknumber">
        <label>验证码：
        	<input name="checkCodeInput" type="text" id="chknumber" maxlength="4" class="chknumber_input" />
        </label>
        <img src="checkCode.action" id="safecode" onclick="reloadcheckcode(this)" title="看不清，请点击本图片换一张"/>
      </div> -->
    </div>
    <div id="center_middle_right"></div>
    <div id="center_submit">
      <div class="button"> <img src="images/dl.gif" width="57" height="20" onclick="form_submit()"></div>
      <div class="button"> <img src="images/cz.gif" width="57" height="20" onclick="form_reset()"></div>
    </div>
    <div id="center_right"></div>
  </div>
</form>
<div id="footer">swl科技有限公司</div>
</body>
</html>

